/**
 * chenuu.com
 * 
 * @author  zhaoxu.com@gmail.com
 * @created 2012-11-14
 */
package com.chenuu.integration.dropbox.requester;

import java.util.ArrayList;
import java.util.List;

import com.chenuu.integration.httpclient.RequestMethod;
import com.chenuu.integration.httpclient.RequestParameter;

/**
 *
 */
public class RequestInfo {

	private RequestMethod method;
	private String uri;
	private List<RequestParameter> params;
	
	public RequestInfo(RequestMethod method, String uri) {
		this.setMethod(method);
		this.setUri(uri);
		params = new ArrayList<RequestParameter>();
	}
	
	public void addParam(String name, Object value) {
		params.add(new RequestParameter(name, value));
	}

	public RequestMethod getMethod() {
		return method;
	}

	public void setMethod(RequestMethod method) {
		this.method = method;
	}

	public String getUri() {
		return uri;
	}

	public void setUri(String uri) {
		this.uri = uri;
	}

	public List<RequestParameter> getParams() {
		return params;
	}

	public void setParams(List<RequestParameter> params) {
		this.params = params;
	}

}
